﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MsgreplyModify.aspx.cs" Inherits="ZX.WebApp.Extend.MsgreplyModify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <style type="text/css">
 html, body { margin: 0; padding: 0; background-color:#F2F8FF; }
 ul, li ,dl, dt, dd{ margin:0; padding:0; list-style:none;}

#container { width: 100%; margin: 0 auto;font-family: Arial,Helvetica,sans-serif; font-size: 12px;}
/*规则1*/
#center table.tabRuleBase{ border-collapse:collapse; width:100%; }
    #center table.tabRuleBase tr{}
    #center table.tabRuleBase tr th, #center table.tabRuleBase tr td{border:1px solid #d4dbe2}
    #center table.tabRuleBase tr th{ font-weight:100; width:108px; text-align:right; vertical-align:middle;}
    #center table.tabRuleBase tr td{ padding:5px; }

        /*Items*/
        #center table.tabRuleBase tr td ul{}
             #center table.tabRuleBase tr td ul li{ display:inline-block; height:25px; line-height:25px; float:left;}


         #center table.tabRuleBase tr td input.btn,  #center table.tabRuleBase tr td textarea{ width:800px;}
             #center table.tabRuleBase tr td textarea{ height:300px;}
         #center table.tabRuleBase tr td input.submit {height: 25px;width: 80px; line-height:25px; background-color:#F0F0F0; border:1px solid #d4dbe2;}

#ltHide_AddUser, #ltHide_ID{ display:none;}
    </style>

    <script type="text/javascript">
        function myfunction() {
            alert("标题或内容不允许为空!");
            return;
        }

        function DepartmemtMsg() {
            alert("请选择建议部门!");
            return;
        }

        function SessionTimeoutMSG() {
            alert("登录超时.返回重新登陆");
            window.location.href = "default.htm";
            return;
        }

        function success(ref) {
            alert(ref + "成功!");
            if (ref == "添加") {
                document.getElementById("title").value = "";
                document.getElementById("content").value = "";
            }
            window.parent.parent.$("#tabs").tabs('close', '建议提交')
        }

        function OptMssage(ref) {
            if (ref == "Error") {
                alert('操作失败!');
            }
        }

        function closewindows() {
            window.location = "default.htm#webhome";

        }

        window.onload = function () {

        }


        function NewOperWindow() {
            //ltHide_AddUser, ltHide_ID
            var ID = document.getElementById("ltHide_ID").innerHTML;
            var UserID = document.getElementById("ltHide_AddUser").innerHTML;

            parent.addTabs("点击回复", "../EHR/MsgReplyPage.aspx?r=" + Math.random() + "&id=" + ID + "&UserID=" + UserID + "");
            parent.NeedRefreshPage = this;
        }

    </script>

    
</head>
<body>
    <form id="form1" runat="server">
    <input id="txtID" runat="server" type="hidden" />
    <div id="container">
        <div id="center">
        <table class="tabRuleBase" runat="server" id="Modify" >
                <tr style=" display:none;">
                    <th>选择对象：</th>
                    <td><input type="text" value="接收人:赵云娇" readonly="readonly" style=" background:#eee;" /></td>
                </tr>
                  <tr>
                    <th>申请人：</th>
                    <td><asp:Literal ID="CreatePeopleName" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <th>建议部门：</th>
                    <td>
                        <ul>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                                <li><asp:CheckBox ID="cbRule" runat="server" /> 
                                    <asp:Literal ID="Literal1" runat="server" Visible="false" Text='<%#Eval("DeptID") %>'></asp:Literal> 
                                    <span><%#Eval("DeptName")%></span>
                                    <asp:Literal ID="hide2" runat="server" Visible="false" Text='<%#Eval("DeptName") %>' ></asp:Literal>
                                    </li>
                            </ItemTemplate>
                        </asp:Repeater>
                        </ul>
                        </td>
                </tr>
                <tr>
                    <th><font style='color:Red;'>*</font> 消息标题：</th>
                    <td><asp:TextBox ID="title" title=" 标题" runat="server" class="btn"
                        requiretype="1"></asp:TextBox></td>
                </tr>
                <tr>
                    <th><font style='color:Red;'>*</font> 建议内容：</th>
                    <td><asp:TextBox ID="content" title=" 建议内容" runat="server" class="btn"
                        requiretype="1" Rows="8" TextMode="MultiLine"></asp:TextBox></td>
                </tr>
                <tr>
                    <th></th>
                    <td><asp:Button ID="Button1" runat="server" Text="保存"  class="submit" 
                                onclick="Button1_Click" /></td>
                </tr>
                <tr>
                    <th>操作说明：</th>
                    <td>标题和内容为必填项</td>
                </tr>
            </table>

            <table class="tabRuleBase" runat="server" id="View" visible="false" >
                 <tr  style=" display:none;">
                    <th>选择对象：</th>
                    <td>
                        <asp:Literal ID="Literal2" runat="server" Text="接收人:赵云娇"></asp:Literal></td>
                </tr>
                  <tr>
                    <th>申请人：</th>
                    <td><asp:Literal ID="ltCreatePeopleName" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <th>建议部门：</th>
                    <td>
                        <asp:Literal ID="ltBM" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <th><font style='color:Red;'>*</font> 消息标题：</th>
                    <td>
                        <asp:Literal ID="ltTitle" runat="server"></asp:Literal></td>
                </tr>
                <tr style=" display:none;">
                    <th><font style='color:Red;'>*</font> 建议内容：</th>
                    <td>
                        <asp:Literal ID="ltContent" runat="server"></asp:Literal></td>
                </tr>
                <tr>
                    <th>
                        反馈内容：
                    </th>
                    <td style=" font-size:14px; line-height:30px;">
                        <div style="height: 30px; line-height: 30px; position: relative; background-color: #E0ECFF;">
                            <span style="position: absolute; left: 0; top: 5px;">
                                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"  AppendDataBoundItems="True"  onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                                    <asp:ListItem Value="">请选择历史版本</asp:ListItem>
                                </asp:DropDownList>
                            </span>
                        </div>
                        <asp:Literal ID="Literal3" runat="server"></asp:Literal>
                        <div>
                            <asp:Button ID="btnEdit" runat="server" Text="编辑内容" onclick="btnEdit_Click"/></div>
                    </td>
                </tr>
                 <tr id="caonima">
                    <th>
                        编辑内容：
                    </th>
                    <td>
                        <asp:TextBox ID="tbEditContent" runat="server" Rows="15" TextMode="MultiLine"></asp:TextBox>
                        <div style="background-color: #E0ECFF;">
                            <asp:Button ID="Button2" runat="server" Text="保存" CssClass="submit" 
                                onclick="Button2_Click"  />
                        </div>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <div id="ltHide_AddUser"><asp:Literal ID="ltHide_AddUser" runat="server"></asp:Literal></div>
                        <div id="ltHide_ID"><asp:Literal ID="ltHide_ID" runat="server"></asp:Literal></div>
                        <input type="button" value="回复" onclick="NewOperWindow();" style=" display:none;" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
